package com.ikun.yummy.manager;

import android.content.Context;

import com.ikun.yummy.bean.CookInfo;
import com.ikun.yummy.sourceop.op.CookOP;

import java.util.List;

public class CookOpManager {
    private final CookOP cookOP;
    public CookOpManager(Context context){
        cookOP = new CookOP(context);
    }
    public void insert(CookInfo cookInfo){
        cookOP.insert(cookInfo);
    }
    public List<CookInfo> queryAll(){
       return cookOP.queryAll();
    }
    public List<CookInfo> queryByUsername(String username){
        return cookOP.queryByUsername(username);
    }
    public void delete(String cookid) {
        cookOP.delete(cookid);
    }
    public List<CookInfo> queryBlur(String key,String type){
        return cookOP.queryBlur(key,type);
    }
    public CookInfo queryByCookId(String cookid){
        return cookOP.queryByCookId(cookid);
    }
}
